package com.fileuptool.service;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;
/**
 * 
 * @author dinghao
* @ClassName: FileListService 
* @Description: TODO
* @date 2018年3月15日 下午4:40:46 
*
 */
@Service
public class FileListService {

	public List<String> getFiles() {
		List<String> files = new ArrayList<String>();
		File file = new File("F:\\tempFile");
		String[] fileNamelist = file.list();
		for (String fileName : fileNamelist) {
			files.add(fileName);
		}
		return files;
	}

}
